package com.learn.ert.controller;

import com.learn.ert.base.BaseApiService;
import com.learn.ert.base.BaseResponse;
import com.learn.ert.mapper.ErIconMapper;
import com.learn.ert.service.ErIconService;
import com.learn.ert.utils.HttpUtils;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;


/**
 * 
 *
 * @author sjf
 * @email 2334593702@qq.com
 * @date 2020-08-14 17:47:02
 */
@RestController
@RequestMapping("api/ericon")
@Api(tags = "导航图标管理接口")
public class ErIconController {
    @Autowired
    private ErIconService erIconService;

   /* *//**
     * 列表
     *//*
    @RequestMapping("/list")
  //  @RequiresPermissions("api:ericon:list")
    public R list(@RequestParam Map<String, Object> params){
        PageUtils page = erIconMapper.queryPage(params);

        return R.ok().put("page", page);
    }


    *//**
     * 信息
     *//*
    @RequestMapping("/info/{iconId}")
   // @RequiresPermissions("api:ericon:info")
    public R info(@PathVariable("iconId") Long iconId){
		ErIconEntity erIcon = erIconMapper.selectById(iconId);

        return R.ok().put("erIcon", erIcon);
    }

    *//**
     * 保存
     *//*
    @RequestMapping("/save")
   // @RequiresPermissions("api:ericon:save")
    public R save(@RequestBody ErIconEntity erIcon){
		erIconMapper.insert(erIcon);

        return R.ok();
    }

    *//**
     * 修改
     *//*
    @RequestMapping("/update")
    //@RequiresPermissions("api:ericon:update")
    public R update(@RequestBody ErIconEntity erIcon){
		erIconMapper.updateById(erIcon);

        return R.ok();
    }

    *//**
     * 删除
     *//*
//    @RequestMapping("/delete")
//    //@RequiresPermissions("api:ericon:delete")
//    public R delete(@RequestBody Long[] iconIds){
//		erIconMapper.removeByIds(Arrays.asList(iconIds));
//
//        return R.ok();
//    }
*/
}
